package se.liu.oschi129.game.objects.enemies.projectiles;

import se.liu.oschi129.game.objects.enemies.EnemyObject;
import se.liu.oschi129.world.objects.WorldMovableObject;
import se.liu.oschi129.world.objects.WorldObject;

/**
 * This is an abstract class for enemy projectiles.
 * 
 * @author oschi129
 */
public abstract class ObjectEnemyProjectile extends WorldMovableObject implements EnemyObject {

	// The target of the projectile
	private WorldObject target;
	
	/**
	 * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
	 * - - - - - - - - - - - - Constructors - - - - - - - - - - - 
	 * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
	 */
	
	public ObjectEnemyProjectile(Type type, WorldObject target, double x, double y, double width, double height) {
		super(type, x, y, width, height);
	}
	
	/**
	 * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
	 * - - - - - - - - - - - Public methods - - - - - - - - - - 
	 * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
	 */
	
	/** Returns the target of the projectile */
	public WorldObject getTarget() {
		return target;
	}
	
	/** Sets the target of the projectile */
	public void setTarget(WorldObject target) {
		this.target = target;
	}
	
}
